package org.alex.jdk8.functional;

import java.util.function.Function;

public class FunctionsT1 {
	public static void main(String[] args) {
		Function<Integer, Integer> add = (a) -> a + 1;
		System.out.println(add.apply(3123123));
		System.out.println(add.andThen((a)-> {return a-2;}).apply(33));
	}
}
